// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入element ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)

// iconfont
import './assets/iconfont/iconfont.css'

//store
import store from './store'

//http
import http from './http'
Vue.prototype.$http = http

//moment
// import moment from 'moment'//导入文件
// Vue.prototype.$moment = moment;//赋值使用
// moment.locale('zh-cn');//需要汉化

import filters from './filters'
Object.keys(filters).forEach(k => Vue.filter(k, filters[k]))



Vue.config.productionTip = false


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  // components: { App },
  // template: '<App/>'
  render: h => h(App)
})


